# list1=[1,2,3,4,5]
# list2=[]
# for i in list1:
#     if 1<=i<=4:
#         list2.append(i)
# print(list2,end="    ")
# list1.append(6)
# list1.remove(3)
# list1[1]=8
# for i in range(0,5):
#     if list1[i]==8:
#         print(i)
# print(list1)
# for g in list1:
#     print(g,end="  ")
# list2=[7,8,9]
# for i in list2:
#     list1.append(i)
#     print(list1)


# my_list = [3, "apple", 9, "banana", 7, "cherry", 2, "date", 5, "elderberry"]
# my_list.append("fig")
# my_list.remove("banana")
# my_list[3]="grape"
# list=[]
# for g in my_list:
#     if type (g) is int:
#         continue
#     elif type(g) is str:
#         list.append(g)
# list.sort()
# a=0
# for i in my_list:
#     if type(i) is int:
#         continue
#     elif type(i) is str:
#         i=list[a]
#         a+=1
#
# print(list)

# print(my_list)





# my_list=[]
# for g in range(1,101):
#     if g%2==0:
#         my_list.append(g)
# a=0
# for i in my_list:
#     my_list[a]=i*i
#     a+=1
# list=[]
# a=0
# for q in my_list:
#     if q<1000:
#         list.append(q)
# my_list=list
# list1=[]
# for w in my_list:
#     list1.insert(0,w)
# my_list=list1
# print(my_list[0:10:1])
# list2=[101,102,103]
# for e in list2:
#     my_list.append(e)
# b=0
# for sumh in my_list:
#     a+=sumh
#     b+=1
# r=a/b
# print(r)
# list3= [i*2 for i in my_list]
# print(list3)
# for index,list in enumerate(my_list):
#     print(index,list)




# print(my_list)


# with open("liu.txt","w") as file:
#     for i in my_list:
#         file.write(f"{i}\n")